# from flask import Flask
#
# app = Flask(__name__)
#
# @app.route('/index')
# def index():
#     return 'hello!'
#
# app.run()
#
#


class Person:
    def __init__(self):
        print("__init__(self)")
    def __del__(self):
        print("__del__")
    # 类属性
    name = 'lch'
    # 隐藏属性 _类名__属性名 _Person__age
    __age = 18
    # 实例方法
    def introduce(self):
        print(f"{Person.name}的年龄是{Person.__age}")


p = Person()
p.introduce()
print(p._Person__age)